<?php /* Smarty version 2.6.18, created on 2009-10-22 23:27:07
         compiled from inquiries_tac_table.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'inquiries_tac_table.tpl', 15, false),)), $this); ?>
<hr>
<table border="0" width="100%">
	<tr bgcolor="#cccccc">
		<td><label><b>Organism<b></label></td>
		<td><label><b>MOID<b></label></td>
		<td><label><b>FMA<b></label></td>
		<td><label><b>TAC<b></label></td>
		<td><label><b>Received Quantity</td>
		<td><label><b>DOA Quantity<b></label></td>
		<td><label><b>Reject Quantity<b></label></td>
		<td><label><b>Total Catch<b></label></td>
		<td><label><b>Remaining Quota<b></label></td>
	</tr>
	<?php $_from = $this->_tpl_vars['results']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['result']):
?>
	<tr class="<?php echo smarty_function_cycle(array('values' => "blue,notify"), $this);?>
">
		<td>
			<div align="center">
			<?php if ($this->_tpl_vars['result']['link']): ?>
				<img src="<?php echo $this->_tpl_vars['result']['link']; ?>
" border="0" height="50px" width="50px">
				<br>
			<?php endif; ?>
			<?php echo $this->_tpl_vars['result']['name']; ?>

			</div>
		</td>
		<td><?php echo $this->_tpl_vars['result']['moid']; ?>
</td>
		<td><?php echo $this->_tpl_vars['result']['fishing_area_name']; ?>
</td>
		<td><?php echo $this->_tpl_vars['result']['limit_quantity']; ?>
</td>
		<td><?php echo $this->_tpl_vars['result']['received_quantity']; ?>
</td>
		<td><?php echo $this->_tpl_vars['result']['doa_quantity']; ?>
</td>
		<td><?php echo $this->_tpl_vars['result']['reject_quantity']; ?>
</td>
		<td><?php echo $this->_tpl_vars['result']['received_quantity']-$this->_tpl_vars['result']['doa_quantity']-$this->_tpl_vars['result']['reject_quantity']; ?>
</td>
		<td><?php echo $this->_tpl_vars['result']['limit_quantity']-$this->_tpl_vars['result']['received_quantity']+$this->_tpl_vars['result']['doa_quantity']+$this->_tpl_vars['result']['reject_quantity']; ?>
</td>
	</tr>
	<?php endforeach; endif; unset($_from); ?>
</table>
<hr>